import request from '@/utils/request'

/**
 * 分页查询门店
 * @param {*} form
 * @param {*} pageSize
 * @param {*} currentPage
 */
export function dataList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/station/page',data)
}

/**
 * 查询详情
 * @param {*} value
 */
export function details(value) {
  return request.get(`/station/${value}`)
}
/**
 * 删除
 * @param {*} value
 */
export function dataDelete(value) {
  return request.delete(`/station/${value}`);
}

// 新增
export function add(options) {
  return request.post(`/station/save`, options)
}

export function updateData(options) {
  return request.put(`/station/save`, options)
}
/**
 * 改变状态
 * @param {*} value
 */
export function changeStatus(value) {
  return request.get(`/station/status/${value}`)
}
